
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的预约</title>
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>css/shopping-mall-index.css" />
<script type="text/javascript" src="<?php echo Url::base(); ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo Url::base(); ?>js/zhonglin.js"></script>
<script type="text/javascript" src="<?php echo Url::base(); ?>js/zhongling2.js"></script>
</head>


<?php

function getParmByKey($key){


    if (!isset($_REQUEST[$key]) || ($_REQUEST[$key]) == "") {

        return "";
    }

    return $_REQUEST[$key];
}
require_once ('application/classes/dao/base.php');
require_once ('application/classes/api/get.php');
require_once ('application/classes/api/productpageset.php');
require_once ('application/classes/api/pageconfig.php');
$pageconfig = new pageconfig();
$get = new get();
$result =  $get->getCache('config');
if($result == ''){
    $result = $pageconfig->getAll();
    $get->setCache('config',$result);
}

$modelone =  array();
$modeltwo =  array();
$modelthree =  array();
$modelfour =  array();
$concat = null;
$time = null;
$desc = null;
$erweima= null;

?>
<?php
/**
 * Created by PhpStorm.
 * User: yinnannan
 * Date: 16/2/4
 * Time: 下午2:17
 */

$productpageset= new productpageset();
$pageproduct = $get->getCache('pageproduct');
if($pageproduct == ''){
    $pageproduct = $productpageset->getAll();
    $get->setCache('pageproduct',$pageproduct);


}
$productId= array();
foreach($pageproduct as $key=>$value){
    $productId[$key] =$value['productId'];
//        array_unique
}
$productId = array_unique($productId);
$modelone =  array();
$modeltwo =  array();
$modelthree =  array();
$modelfour =  array();
$concat = null;
$time = null;
$desc = null;
$erweima= null;
foreach($result as $key=>$value){
    if($value['type']=='底部模块1'){
        array_push($modelone,$value);

    }
    if($value['type']=='底部模块2'){
        array_push($modeltwo,$value);
    }
    if($value['type']=='底部模块3'){
        array_push($modelthree,$value);
    }
    if($value['type']=='底部模块4'){
        array_push($modelfour,$value);
    }
    if($value['type']=='底部联系方式'){
        $concat = $value;
    }
    if($value['type']=='配送时间'){
        $time = $value;
    }
    if($value['type']=='配送时间说明'){
        $desc = $value;
    }
    if($value['type']=='二维码'){
        $erweima = $value;
    }
}
function userSession(){
    return  Session::instance('database')->get('user');
}
?>
<body id="top">

	<!--header-->
    <div class="zl-header">
    	<div class="zl-hd w1200">
        	<p class="hd-p1 f-l">
            	Hi!您好，欢迎来到宅客微购，请登录  <a href="注册.html">【免费注册】</a>
            </p>
        	<p class="hd-p2 f-r">

                <?php

                $user =userSession();
                if($user== null){
                ?>
                    <a href="<?php echo Url::base(); ?>/index.php/login/login">登录</a><span>|</span>
                <?php
                }else{
                ?>

                <a href="<?php echo Url::base(); ?>"> 返回首页</a>
                     <a href="<?php echo Url::base(); ?>/index.php/user/index"> (个人中心)</a><span>|</span>
                <?php }?>
                <a href="购物车.html">我的购物车</a><span>|</span>
                <a href="我的订单.html">我的订单</a>
            </p>
            <div style="clear:both;"></div>
        </div>
    </div>
	
    <!--logo search weweima-->
    <div class="logo-search w1200">
    	<div class="logo-box f-l">
        	<div class="logo f-l">
            	<a href="index.html" title="中林logo"><img src="<?php echo Url::base(); ?>images/zl2-01.gif" /></a>
            </div>
        	<div class="shangjia f-l">
            	<a href="JavaScript:;"  style="display: none;" class="shangjia-a1">[ 切换城市 ]</a>
            	<a href="JavaScript:;" class="shangjia-a2"  style="display: none;"> 商家入口</a>
                <div class="select-city">
        	<div class="sl-city-top">
            	<p class="f-l">切换城市</p>
                <a class="close-select-city f-r" href="JavaScript:;">
                	<img src="<?php echo Url::base(); ?>images/close-select-city.gif" />
                </a>
            </div>
            <div class="sl-city-con" style="display: none;">
            	<p>西北</p>
                <dl>
                	<dt>重庆市</dt>
                    <dd>
                    	<a href="JavaScript:;">长寿区</a>
                        <a href="JavaScript:;">巴南区</a>
                        <a href="JavaScript:;">南岸区</a>
                        <a href="JavaScript:;">九龙坡区</a>
                        <a href="JavaScript:;">沙坪坝区</a>
                        <a href="JavaScript:;">北碚</a>
                        <a href="JavaScript:;">江北区</a>
                        <a href="JavaScript:;">渝北区</a>
                        <a href="JavaScript:;">大渡口区</a>
                        <a href="JavaScript:;">渝中区</a>
                        <a href="JavaScript:;">万州</a>
                        <a href="JavaScript:;">武隆</a>
                        <a href="JavaScript:;">晏家</a>
                        <a href="JavaScript:;">长寿湖</a>
                        <a href="JavaScript:;">云集</a>
                        <a href="JavaScript:;">华中</a>
                        <a href="JavaScript:;">林封</a>
                        <a href="JavaScript:;">双龙</a>
                        <a href="JavaScript:;">石回</a>
                        <a href="JavaScript:;">龙凤呈祥</a>
                        <a href="JavaScript:;">朝天门</a>
                        <a href="JavaScript:;">中华</a>
                        <a href="JavaScript:;">玉溪</a>
                        <a href="JavaScript:;">云烟</a>
                        <a href="JavaScript:;">红塔山</a>
                        <a href="JavaScript:;">真龙</a>
                        <a href="JavaScript:;">天子</a>
                        <a href="JavaScript:;">娇子</a>
                    </dd>
                    <div style="clear:both;"></div>
                </dl>
                <dl>
                	<dt>新疆</dt>
                    <dd>
                    	<a href="JavaScript:;">齐乌鲁木</a>
                        <a href="JavaScript:;">昌吉</a>
                        <a href="JavaScript:;">巴音</a>
                        <a href="JavaScript:;">郭楞</a>
                        <a href="JavaScript:;">伊犁</a>
                        <a href="JavaScript:;">阿克苏</a>
                        <a href="JavaScript:;">喀什</a>
                        <a href="JavaScript:;">哈密</a>
                        <a href="JavaScript:;">克拉玛依</a>
                        <a href="JavaScript:;">博尔塔拉</a>
                        <a href="JavaScript:;">吐鲁番</a>
                        <a href="JavaScript:;">和田</a>
                        <a href="JavaScript:;">石河子</a>
                        <a href="JavaScript:;">克孜勒苏</a>
                        <a href="JavaScript:;">阿拉尔</a>
                        <a href="JavaScript:;">五家渠</a>
                        <a href="JavaScript:;">图木舒克</a>
                        <a href="JavaScript:;">库尔勒</a>
                    </dd>
                    <div style="clear:both;"></div>
                </dl>
                <dl>
                	<dt>甘肃</dt>
                    <dd>
                    	<a href="JavaScript:;">兰州</a>
                        <a href="JavaScript:;">天水</a>
                        <a href="JavaScript:;">巴音</a>
                        <a href="JavaScript:;">白银</a>
                        <a href="JavaScript:;">庆阳</a>
                        <a href="JavaScript:;">平凉</a>
                        <a href="JavaScript:;">酒泉</a>
                        <a href="JavaScript:;">张掖</a>
                        <a href="JavaScript:;">武威</a>
                        <a href="JavaScript:;">定西</a>
                        <a href="JavaScript:;">金昌</a>
                        <a href="JavaScript:;">陇南</a>
                        <a href="JavaScript:;">临夏</a>
                        <a href="JavaScript:;">嘉峪关</a>
                        <a href="JavaScript:;">甘南</a>
                    </dd>
                    <div style="clear:both;"></div>
                </dl>
                <dl>
                	<dt>宁夏</dt>
                    <dd>
                    	<a href="JavaScript:;">银川</a>
                        <a href="JavaScript:;">吴忠</a>
                        <a href="JavaScript:;">石嘴山</a>
                        <a href="JavaScript:;">中卫</a>
                        <a href="JavaScript:;">固原</a>
                    </dd>
                    <div style="clear:both;"></div>
                </dl>
                <dl>
                	<dt>青海</dt>
                    <dd>
                    	<a href="JavaScript:;">西宁</a>
                        <a href="JavaScript:;">海西</a>
                        <a href="JavaScript:;">海北</a>
                        <a href="JavaScript:;">果洛</a>
                        <a href="JavaScript:;">海东</a>
                        <a href="JavaScript:;">黄南</a>
                        <a href="JavaScript:;">玉树</a>
                        <a href="JavaScript:;">海南</a>
                    </dd>
                    <div style="clear:both;"></div>
                </dl>
            </div>
        </div>
            </div>
            <div style="clear:both;"></div>
        </div>
        <div class="erweima f-r">
        	<a href="JavaScript:;"><img src="<?php echo Url::base(); ?>uploads/<?php echo $erweima['content']; ?>" /></a>
        </div>
        <div class="search f-r">
        	<div class="search-info">
            	<input type="text" placeholder="请输入商品名称" />
                <button>搜索</button>
                <div style="clear:both;"></div>
            </div>
            <ul class="search-ul">
            	<li><a href="JavaScript:;">绿豆</a></li>
            	<li><a href="JavaScript:;">大米</a></li>
            	<li><a href="JavaScript:;">驱蚊</a></li>
            	<li><a href="JavaScript:;">洗面奶</a></li>
            	<li><a href="JavaScript:;">格力空调</a></li>
            	<li><a href="JavaScript:;">洗发</a></li>
            	<li><a href="JavaScript:;">护发</a></li>
            	<li><a href="JavaScript:;">葡萄</a></li>
            	<li><a href="JavaScript:;">脉动</a></li>
            	<li><a href="JavaScript:;">海鲜</a></li>
            	<li><a href="JavaScript:;">水产</a></li>
                <div style="clear:both;"></div>
            </ul>
        </div>
        <div style="clear:both;"></div>
    </div>

